package org.poem.config;

import org.poem.entity.TestEntity;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

@Configuration
public class TestConfig  {

    @Bean
    @Profile(value = "dev")
    public TestEntity getDevEntity(){
        return  new TestEntity("from development profile");
    }

    @Bean
    @Profile(value = "pro")
    public TestEntity getProEntity(){
        return  new TestEntity("from production profile");
    }
}
